//调用接口配置文件
import { request } from 'config/request'
//测试数据接口
export async function allList(params) {
    return request({
        url: 'admin/activityRule/getActivityRule',
        method: 'GET',
        data: params,
    });
};
//提交按钮
export async function submit(params) {
	return request({
		url: 'admin/sysParameter/saveSysParameter',
		method: 'POST',
		data: params,
		headers: {
			"Content-type": "application/json",
		}
	});
};

export async function roleList(params) {
	return request({
	  url: 'admin/person/getAllRoles',
	  method: 'get',
	  data: params,
	});
};

// 获取进入列表
export async function list(params) {
	return request({
		url: 'admin/sysParameter/get/byParamCode/SECONDARY_BROKER_CONFIG?',
		method: 'Get',
		data: params,
		headers: {
			"Content-type": "application/json",
		}
	});
	
};
// 获取用户管理查询
export async function query(params) {
	return request({
	  url: 'admin/IllegalBrokerInvite/findPageList',
	  method: 'post',
	  data: params,
	});
};
// 导出模板
export async function down(params) {
    console.log(params);
    return request({
        url: `admin/IllegalBrokerInvite/downloadTemplate`,
        method: 'GET',
        data: params,
    });
};
// 导入
export async function importAccount(params) {
    return request({
        url: 'admin/IllegalBrokerInvite/importData',
        method: 'POST',
        data: params
    });
};

// 导出
export async function exportData(params) {
    return request({
        url: 'admin/IllegalBrokerInvite/exportData',
        method: 'POST',
        data: params
    });
};

// 删除
export async function del(params) {
    return request({
        url: 'admin/IllegalBrokerInvite/deleted',
        method: 'POST',
        data: params
    });
};